package com.tedu.openmedical.binfopatientinfo.controller;


import com.tedu.openmedical.base.response.JsonResult;
import com.tedu.openmedical.binfopatientinfo.pojo.entity.BinfoPatientInfo;
import com.tedu.openmedical.binfopatientinfo.service.BinfoPatientInfoService;
import com.tedu.openmedical.brregister.pojo.entity.BrRegister;
import com.tedu.openmedical.brregister.service.BrRegisterService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 病案借阅登记表 前端控制器
 * </p>
 *
 * @author testjava
 * @since 2024-08-08
 */
@RestController
@RequestMapping("/binfo/patientinfo")
@CrossOrigin
@Slf4j
public class BinfoPatientInfoController {
    @Autowired
    private BinfoPatientInfoService patientInfoService ;
    //selectRegisterAll:查询所有病案借阅登记表
    @GetMapping("/select/selectAll")
    public JsonResult selectAll(){
        log.debug("开始执行selectAll方法");
        List<BinfoPatientInfo> binfoDataAll = patientInfoService.list(null);
        return JsonResult.ok(binfoDataAll);
    }
}

